//通用业务异常
export class BusinessError extends Error{
    constructor(message = '业务异常') {
        super(message);
        this.name = 'BusinessError';
    }
}
//认证失败异常
export class AuthFailError extends Error{
    constructor(message = '认证异常') {
        super(message);
        this.name = 'AuthFailError';
    }
}
// 组件使用错误异常
export class CompUserError extends Error{
    constructor(message = '组件使用错误') {
        super(message);
        this.name = 'CompUserError';
    }
}